//
//  LoginHelper.m
//  FbeeAPP
//
//  Created by dev-m on 2018/3/5.
//  Copyright © 2018年 mohao. All rights reserved.
//

#import "LoginHelper.h"
#import "RootController.h"

@interface LoginHelper ()<UIGestureRecognizerDelegate>

@end

@implementation LoginHelper

+(void)showLoginBySucceed:(SucceedBlock)block
{
    LoginViewController *vc = [[LoginViewController alloc] initWithBlock:^{
        block();
    }];
    
    UINavigationController * qNav = [[UINavigationController alloc]initWithRootViewController:vc];
    qNav.navigationBarHidden = YES;
    
    __weak RootController * rootVC = [RootController sharedRootVC];
    [rootVC presentViewController:qNav animated:YES completion:^{
    }];
}
@end
